package com.xuecheng.test.rabbitmq;

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class Producer05 {


//    @Autowired
//    RabbitTemplate rabbitdTemplate;
//
//    @Test
//    public void testSendByTopic(){
//        for (int i = 0; i < 5; i++) {
//           String message =  "sms eamil inform to user" + i;
//           rabbitdTemplate.convertAndSend(RabbitmqConfig.EXCHANGE_TOPICS_INFORM,"inform.ssm.eamil",message);
//            System.out.println("Send Message is : " + message + "'");
//        }
//    }
}
